namespace YXShop.ExcelLite
{
    using System;
    using System.Collections;
    using System.ComponentModel;

    public abstract class ExcelRowColumnCellCollectionBase : IEnumerable
    {
        private ArrayList items;
        private ExcelWorksheet parent;

        [EditorBrowsable(EditorBrowsableState.Never)]
        protected ExcelRowColumnCellCollectionBase(ExcelWorksheet parent)
        {
            this.parent = parent;
            this.items = new ArrayList();
        }

        public IEnumerator GetEnumerator()
        {
            return this.items.GetEnumerator();
        }

        public int Count
        {
            get
            {
                return this.items.Count;
            }
        }

        [EditorBrowsable(EditorBrowsableState.Never)]
        protected ArrayList Items
        {
            get
            {
                return this.items;
            }
        }

        internal ExcelWorksheet Parent
        {
            get
            {
                return this.parent;
            }
        }
    }
}

